<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-06-27 17:51:05
 * @LastEditors: voanit
 * @LastEditTime: 2022-06-29 15:33:49
-->
<template>
  <div>
    御剑乘风来,除魔天地间!===Reactive==={{ obj.count }}
    <button @click="btn">按钮</button>
  </div>
</template>
           
<script>
import { reactive } from 'vue'
export default {
  name: '',
  setup () {
    var obj = reactive({
      count: 1
    })
    const btn = () => {
      // console.log('btn');
      obj.count += 2
      // console.log(obj, 77);
    }
    return { obj, btn }
  }
}
</script>
<style lang='less'  scoped>
</style>